package com.dragon.modules.yuegou.entity.coupon;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

/**
 * 优惠券模板库存实体类<br>
 * 对应的表为：coup_coupon_template_stock<br>
 * 
 * @author pbuilder generated
 * @date 2020-06-30 17:39:39
 * @company sgy
 * @version 2.0
 */
@TableName("coup_coupon_template_stock")
@ApiModel(description = "优惠券模板库存")
public class CouponTemplateStockEntity {

    /** 优惠券模板ID */
	@ApiModelProperty("优惠券模板ID")
	protected String id;

    /** 总库存 */
	@ApiModelProperty("总库存")
	protected Integer stockTotal;

    /** 库存剩余 */
	@ApiModelProperty("库存剩余")
	protected Integer stockSurplus;

    /** 已用库存 */
	@ApiModelProperty("已用库存")
	protected Integer stockUse;

    /** 出售库存总量 */
	@ApiModelProperty("出售库存总量")
	protected Integer saleTotal;

    /** 出售库存 */
	@ApiModelProperty("出售库存")
	protected Integer saleStock;

    /** 发放量 */
	@ApiModelProperty("发放量")
	protected Integer granted;

    /** 发放总库存 */
	@ApiModelProperty("发放总库存")
	protected Integer grantTotal;

    /** 发放库存 */
	@ApiModelProperty("发放库存")
	protected Integer grantStock;

    /** 版本 */
	@ApiModelProperty("版本")
	protected Integer version;

    /** 创建时间 */
	@ApiModelProperty("创建时间")
	protected LocalDateTime createdTime;

    /** 最后更新时间 */
	@ApiModelProperty("最后更新时间")
	protected LocalDateTime modifiedTime;

	/**
	 * 构造一个空优惠券模板库存实体对象
	 */
	public CouponTemplateStockEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个优惠券模板库存实体对象
	 * 
	 * @param other 其它对象
	 */
	public CouponTemplateStockEntity(CouponTemplateStockEntity other){
		super();
     	this.id = other.id;
     	this.stockTotal = other.stockTotal;
     	this.stockSurplus = other.stockSurplus;
     	this.stockUse = other.stockUse;
     	this.saleTotal = other.saleTotal;
     	this.saleStock = other.saleStock;
     	this.granted = other.granted;
     	this.grantTotal = other.grantTotal;
     	this.grantStock = other.grantStock;
     	this.version = other.version;
     	this.createdTime = other.createdTime;
     	this.modifiedTime = other.modifiedTime;
	}


	/**
	 * 获取优惠券模板ID
	 * 
	 * @return id 优惠券模板ID
	 */
	public String getId() {
		return id;
	}
  	
	/**
	 * 设置优惠券模板ID
	 * 
	 * @param id 优惠券模板ID
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 获取总库存
	 * 
	 * @return stockTotal 总库存
	 */
	public Integer getStockTotal() {
		return stockTotal;
	}
  	
	/**
	 * 设置总库存
	 * 
	 * @param stockTotal 总库存
	 */
	public void setStockTotal(Integer stockTotal) {
		this.stockTotal = stockTotal;
	}

	/**
	 * 获取库存剩余
	 * 
	 * @return stockSurplus 库存剩余
	 */
	public Integer getStockSurplus() {
		return stockSurplus;
	}
  	
	/**
	 * 设置库存剩余
	 * 
	 * @param stockSurplus 库存剩余
	 */
	public void setStockSurplus(Integer stockSurplus) {
		this.stockSurplus = stockSurplus;
	}

	/**
	 * 获取已用库存
	 * 
	 * @return stockUse 已用库存
	 */
	public Integer getStockUse() {
		return stockUse;
	}
  	
	/**
	 * 设置已用库存
	 * 
	 * @param stockUse 已用库存
	 */
	public void setStockUse(Integer stockUse) {
		this.stockUse = stockUse;
	}

	/**
	 * 获取出售库存总量
	 * 
	 * @return saleTotal 出售库存总量
	 */
	public Integer getSaleTotal() {
		return saleTotal;
	}
  	
	/**
	 * 设置出售库存总量
	 * 
	 * @param saleTotal 出售库存总量
	 */
	public void setSaleTotal(Integer saleTotal) {
		this.saleTotal = saleTotal;
	}

	/**
	 * 获取出售库存
	 * 
	 * @return saleStock 出售库存
	 */
	public Integer getSaleStock() {
		return saleStock;
	}
  	
	/**
	 * 设置出售库存
	 * 
	 * @param saleStock 出售库存
	 */
	public void setSaleStock(Integer saleStock) {
		this.saleStock = saleStock;
	}

	/**
	 * 获取发放量
	 * 
	 * @return granted 发放量
	 */
	public Integer getGranted() {
		return granted;
	}
  	
	/**
	 * 设置发放量
	 * 
	 * @param granted 发放量
	 */
	public void setGranted(Integer granted) {
		this.granted = granted;
	}

	/**
	 * 获取发放总库存
	 * 
	 * @return grantTotal 发放总库存
	 */
	public Integer getGrantTotal() {
		return grantTotal;
	}
  	
	/**
	 * 设置发放总库存
	 * 
	 * @param grantTotal 发放总库存
	 */
	public void setGrantTotal(Integer grantTotal) {
		this.grantTotal = grantTotal;
	}

	/**
	 * 获取发放库存
	 * 
	 * @return grantStock 发放库存
	 */
	public Integer getGrantStock() {
		return grantStock;
	}
  	
	/**
	 * 设置发放库存
	 * 
	 * @param grantStock 发放库存
	 */
	public void setGrantStock(Integer grantStock) {
		this.grantStock = grantStock;
	}

	/**
	 * 获取版本
	 * 
	 * @return version 版本
	 */
	public Integer getVersion() {
		return version;
	}
  	
	/**
	 * 设置版本
	 * 
	 * @param version 版本
	 */
	public void setVersion(Integer version) {
		this.version = version;
	}

	/**
	 * 获取创建时间
	 * 
	 * @return createdTime 创建时间
	 */
	public LocalDateTime getCreatedTime() {
		return createdTime;
	}
  	
	/**
	 * 设置创建时间
	 * 
	 * @param createdTime 创建时间
	 */
	public void setCreatedTime(LocalDateTime createdTime) {
		this.createdTime = createdTime;
	}

	/**
	 * 获取最后更新时间
	 * 
	 * @return modifiedTime 最后更新时间
	 */
	public LocalDateTime getModifiedTime() {
		return modifiedTime;
	}
  	
	/**
	 * 设置最后更新时间
	 * 
	 * @param modifiedTime 最后更新时间
	 */
	public void setModifiedTime(LocalDateTime modifiedTime) {
		this.modifiedTime = modifiedTime;
	}

    public String toString() {
		return new StringBuilder().append("CouponTemplateStockEntity{").
			append("id=").append(id).
			append(",stockTotal=").append(stockTotal).
			append(",stockSurplus=").append(stockSurplus).
			append(",stockUse=").append(stockUse).
			append(",saleTotal=").append(saleTotal).
			append(",saleStock=").append(saleStock).
			append(",granted=").append(granted).
			append(",grantTotal=").append(grantTotal).
			append(",grantStock=").append(grantStock).
			append(",version=").append(version).
			append(",createdTime=").append(createdTime).
			append(",modifiedTime=").append(modifiedTime).
			append('}').toString();
    }

	/**
	 * 复制对象
	 * 
	 * @return 复制后的新实体对象
	 */
	public CouponTemplateStockEntity copy() {
		return new CouponTemplateStockEntity(this);
	}

    /** 优惠券模板ID */
	public static final String COL_ID = "id";

    /** 总库存 */
	public static final String COL_STOCK_TOTAL = "stock_total";

    /** 库存剩余 */
	public static final String COL_STOCK_SURPLUS = "stock_surplus";

    /** 已用库存 */
	public static final String COL_STOCK_USE = "stock_use";

    /** 出售库存总量 */
	public static final String COL_SALE_TOTAL = "sale_total";

    /** 出售库存 */
	public static final String COL_SALE_STOCK = "sale_stock";

    /** 发放量 */
	public static final String COL_GRANTED = "granted";

    /** 发放总库存 */
	public static final String COL_GRANT_TOTAL = "grant_total";

    /** 发放库存 */
	public static final String COL_GRANT_STOCK = "grant_stock";

    /** 版本 */
	public static final String COL_VERSION = "version";

    /** 创建时间 */
	public static final String COL_CREATED_TIME = "created_time";

    /** 最后更新时间 */
	public static final String COL_MODIFIED_TIME = "modified_time";
}
